package com.style_transfer.dao;

import com.style_transfer.model.U_image;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UImageDao {
    @Insert("insert into u_image values(#{username},#{url})")
    public void setImage(@Param("username") String username, @Param("url") String url);

    @Select("select from u_image where username = #{username}")
    public U_image getImage(@Param("username") String username);
}
